package com.example.schoolenterprisealliance.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.schoolenterprisealliance.R;
import com.example.schoolenterprisealliance.bean.Admin;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class SearchContextAdapter extends BaseQuickAdapter<Admin.DataBean, BaseViewHolder> {

    public SearchContextAdapter(int layoutResId, @Nullable List<Admin.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Admin.DataBean item) {
        helper.setText(R.id.tv_context,item.getContext());
    }
}
